package com.sc.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author PC
 * @version 1.0
 * @description: TODO
 * @date 2024/8/29 15:47
 */

@RestController
@SpringBootApplication
@Slf4j
public class DemoApp {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(DemoApp.class);
        springApplication.run(args);
        log.info(">>> {}", DemoApp.class.getSimpleName().toUpperCase() + " STARTING SUCCESS");
    }

    @GetMapping("/")
    public String index() {
        return "WELCOME";
    }


}
